export class loginModel{
    public userNameOrEmailAddress: string = '';
    public password: string = '';
    public twoFactorVerificationCode: string = null;
    public rememberClient: boolean = false;
    public twoFactorRememberClientToken: string = null;
    public singleSignIn: boolean = false;
    public returnUrl: string = null;
    public type: number = 1; 

    constructor(obj?){
        let instance = this;
        if(!obj) return;
        (obj.userNameOrEmailAddress) && (instance.userNameOrEmailAddress = obj.userNameOrEmailAddress);
        (obj.password) && (instance.password = obj.password);
        (obj.twoFactorVerificationCode) && (instance.twoFactorVerificationCode = obj.twoFactorVerificationCode);
        (obj.rememberClient) && (instance.rememberClient = obj.rememberClient);
        (obj.twoFactorRememberClientToken) && (instance.twoFactorRememberClientToken = obj.twoFactorRememberClientToken);
        (obj.singleSignIn) && (instance.singleSignIn = obj.singleSignIn);
        (obj.returnUrl) && (instance.returnUrl = obj.returnUrl);
        (obj.type) && (instance.type = obj.type);
    }
}